package com.shg.service;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.shg.bean.Admin;
import com.shg.bean.Power;
import com.shg.bean.QueryResult;
import com.shg.bean.Roles;

public interface PowerService extends BasiceDao<Power> {


	public  Map<String, Set<Power>> getPower(Admin admin)throws Exception;
	
	public QueryResult<Power> getAllPower(Integer firstResult,Integer maxResult)throws Exception;
	
	 public void addPower(Power power)throws Exception;
	 
	 public void updatePower(Power power)throws Exception;
	 
	 public void updateUnlock(Integer state,long id)throws Exception;
	 
	public List<Roles> getPowerForRole(long powerid)throws Exception;

	public void updatePowerForRole(Power power, long[] roleid)throws Exception;

	public List<Power> getParent()throws Exception;
}
